package com.icloud.wallet.boot.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@Builder
@TableName("t_sys_cron")
@ApiModel(value = "定时任务配置对象", description = "定时任务配置表")
public class TSysCron implements Serializable {
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;
    @TableField("task_code")
    private String taskCode;
    @TableField("task_name")
    private String taskName;
    @TableField("cron")
    private String cron;
    @TableField("state")
    private String state;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
